﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;

namespace sistemaAcademicoFinanceiroEscolas
{
    public partial class testeForm : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            SqlConnection sqlc = new SqlConnection(ConfigurationManager.AppSettings["baseDados"]);
            sqlc.Open();

            string update = "delete from aula where dataAula = '31/06/2013'";

            SqlCommand cmdUpdate = new SqlCommand(update, sqlc);
            cmdUpdate.ExecuteNonQuery();

            sqlc.Close();

        }
    }
}
